package com.jingdianjichi.user.convert;

import com.jingdianjichi.user.entity.dto.UserDto;
import com.jingdianjichi.user.entity.po.UserPo;
import com.jingdianjichi.user.entity.req.UserPageReq;
import com.jingdianjichi.user.entity.req.UserReq;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

@Mapper
public interface UserConverter {

    UserConverter INSTANCE = Mappers.getMapper(UserConverter.class);

    UserPo convertPageReqToPo(UserPageReq userPageReq);

    UserDto convertReqToDto(UserReq userReq);

    UserPo convertDtoToPo(UserDto userDto);

    UserDto convertPageReqToDto(UserPageReq userPageReq);
}
